package designPattern.brigde;

public class Client {
    public static void main(String[] args) {

        System.out.println("=============================");
        //获取折叠式手机(样式+品牌)
        Phone foldedPhone1 = new FoldedPhone(new Xiaomi());
        foldedPhone1.open();
        foldedPhone1.call();
        foldedPhone1.close();

        System.out.println("============================");
        Phone foldedPhone2 = new FoldedPhone(new Vivo());
        foldedPhone2.open();
        foldedPhone2.call();
        foldedPhone2.close();

        System.out.println("============================");

        Phone upRightPhone1 = new UpRightPhone(new Xiaomi());
        upRightPhone1.open();
        upRightPhone1.call();
        upRightPhone1.close();

        System.out.println("============================");

        Phone upRightPhone2 = new UpRightPhone(new Vivo());
        upRightPhone2.open();
        upRightPhone2.call();
        upRightPhone2.close();
    }
}
